<template>
  <div class="box-item">
    <div class="left">{{ label }}: </div>
    <div class="right">
      <template v-if="$slots.value">
        <slot name="value"></slot>
      </template>
      <template v-else>
        {{ value }}
      </template>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    label: {
      type: String,
      default: ''
    },
    value: {
      default: ''
    },
  },
  data() {
    return {}
  },
  created() {

  },
  methods: {

  }
}
</script>

<style scoped lang="less">
.box-item{
  display: flex;
  font-size: 14px;
  padding: 6px 0;
  .left{
    color: #939393;
    width: 100px;
    text-align: right;
    margin-right: 16px;
  }
  .right{
    flex: 1;
  }
}
</style>
